package d3_note;

import org.junit.Test;

import java.lang.annotation.Annotation;
import java.util.Arrays;

public class AnnotationT1 {
    @Test
    public void parseClass() {
        //1.得到class对象
        Class c = d1.class;
        //2.解析类的注解
        //判断是否存在注解
        if (c.isAnnotationPresent(t3.class)) {
            t3 mt3 = (t3)c.getDeclaredAnnotation(t3.class);
            System.out.println(mt3.value());
            System.out.println(mt3.aaa());
            System.out.println(Arrays.toString(mt3.bbb()));

        }
    }
}
